#include "selectServer.hpp"

int main(int args, char *argv[])
{
    if(args != 2)
    {
        std::cerr << "Usage: " << argv[0] << " port" << std::endl;
        exit(USAGE_ERR);  
    }

    Enable_Console_Log_Strategy();

    uint16_t port = std::stoi(argv[1]);

    std::unique_ptr<SelectServer> server = std::make_unique<SelectServer>(port);
    server->Start();
    server->Stop();
    return 0;
}